package com.google.code.head2head.gwtmodules.client.imagepanels;

import therandomhomepage.widgets.client.LightboxImage;

import com.google.gwt.user.client.ui.DisclosurePanel;

public class DisclosureTwoImagePanel extends TwoImagesPanel {

	public DisclosureTwoImagePanel(String pathImage1, String pathImage2) {

		super(pathImage1, pathImage2);
		
        LightboxImage lightboxImage1 = new LightboxImage(getImage1());
        LightboxImage lightboxImage2 = new LightboxImage(getImage2());
        
		DisclosurePanel dp = new DisclosurePanel("First image", true);
		dp.add(lightboxImage1);

		DisclosurePanel dp2 = new DisclosurePanel("Second image", true);
		dp2.add(lightboxImage2);

		this.add(dp);
		this.add(dp2);
		
		/*Image image1=getImage1();
		Image image2=getImage2();
		Image images[] = {image1, image2};
        LightboxImage lightboxImage = new LightboxImage(images, false, 3);
        lightboxImage.setSlideshowForever(true);
        
        this.add(lightboxImage);*/
	}

}
